import React from 'react';
import { Button } from 'antd';
import { Loading } from '@ecoding/components.antd';

const C = () => {

    const handler = () => {
        Loading.show({ tip: "正在加载...", key:"trans" });
        setTimeout(() => {
            Loading.hide({ key:"trans" })
        }, 3000);
    }

    return (
        <Button onClick={handler}>
            点击出现加载
        </Button>
    );
}

export default C;